var dataMap = {};

$(function() {
			// alert("input.js ready");
	
			generateMatriculationYearList();
			selectCurrValue();
		})



// 生成年份列表
function generateMatriculationYearList() {
	var optionStr = '';
	for (year = 1990; year < 2021; year++) {
		optionStr += '<option value="' + year + '">' + year + '</option>';

	}
	var selectStrBegin = "<select name=\"bean.matriculationYear\" id=\"bean_matriculationYear\" >";
	var selectStrEnd = "</select>";

	var all = selectStrBegin + optionStr + selectStrEnd;
	// alert(all);
	$('#bean_matriculationYear_td').attr('innerHTML', all);
}


function selectCurrValue() {
	//alert("selectCurrValue");
	// 修改页面，selected 选中当前值
	var total = dataMap.bean.totalLearnYear;
	selected('bean_totalLearnYear', total == '' || total == 0 ? 1 : total);
	var matri = dataMap.bean.matriculationYear;
	selected('bean_matriculationYear', matri == '' || matri == 0 ? 1 : matri);
	
	//alert('total: '+total+"  matri: "+ matri);

}


